<template>
  
</template>

<script>

function copy(target){
    // 扩展运算符
    return [...target]
}
let arr = [1, 2, 3, 4, 5]
let brr = copy(arr); 
arr.push(100);
console.log(brr); // [1, 2, 3, 4, 5]

export default {
  data(){
    return{
     
    }
  }
}
</script>

<style>

</style>